package com.googlecode.flex_solder.collections  {
  /**
   * $Id: DatabaseArrayCollection.as 25 2009-02-17 01:43:57Z fuller.sethm $
   * 
   */

  import mx.collections.ArrayCollection;

  public class DatabaseArrayCollection {
    public var sqlCommand:String = null;
    public var dataList:ArrayCollection = null;
    public var params:Array = null;

    public function DatabaseArrayCollection() {

    }

    public function traceData():void {
      trace('SQL COMMAND: ' + sqlCommand);
      if (params != null) {
	for (var parIdx:int = 0; parIdx < params.length; parIdx++) {
	  var parObj:Object = params[idx];
	  trace('Param[' + parIdx + '] ' +  parObj.toString());
	}

      }

      if (dataList != null) {
	for (var idx:int = 0; idx < dataList.length; idx++) {
	  var dataObj:Object = dataList.getItemAt(idx);
	  trace(idx + ' ' + dataObj.toString());
	}
      }
      else {
	trace('DATA LIST == NULL');
      }
    }

  }
}